query postgresql from jenkins